package com.ruoyi.project.xkx.order.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.project.xkx.school.domain.XkxClass;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;

/**
 * 消课订单对象 xk_order
 * 
 * @author 闫阳光
 * @date 2021-05-13
 */
@Data
public class XkOrder
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long xkId;

    /** 消课日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "消课日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date xkDate;

    /** 课程id 消得什么课 */
/*    @Excel(name = "课程id 消得什么课")*/
    private Long courseId;

    /** 班级id 哪个班消课 */
/*    @Excel(name = "班级id")*/
    private Long classId;

    /** 消课类型 */
/*    @Excel(name = "消课类型")*/
    private Long orderCategoryId;

    /** 消课课时 全班学生扣除相同课时 不管该学生在不在 */
    @Excel(name = "消课课时")
    private Long xkHours;

    /** 消课金额 每个学生扣除的金额 相加的和 */
    @Excel(name = "消课金额")
    private Double xkAmount;

    /** 学生编号 */
    private String studentNumber;
    /** 教师编号 */
    private Long userId;
    @Excel(name = "课程名称")
    @TableField(exist = false)
    private String courseName;
    @Excel(name = "班级名称")
    @TableField(exist = false)
    private String className;
    @Excel(name = "订单类型")
    @TableField(exist = false)
    private String categoryName;
    @Excel(name = "校区名称")
    @TableField(exist = false)
    private String schoolName;
    @Excel(name = "任课老师")
    @TableField(exist = false)
    private String nickName;
    @Excel(name = "班级默认消课课时")
    @TableField(exist = false)
    private int classDeductHours;

    @TableField(exist = false)
    private XkxClass xkxClass;
}
